<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
   <!doctype html>
 <html lang="zh-CN">
 <head>
   <base href="<%=basePath%>">
   <meta charset="UTF-8">
   <link rel="stylesheet" href="css/common.css">
   <link rel="stylesheet" href="css/main.css">
   <link rel="stylesheet" href="css/pintuer.css">
   <script type="text/javascript" src="js/jquery.min.js"></script>
   <script type="text/javascript" src="js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="js/common.js"></script>
   <script src="js/pintuer.js"></script>
   <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
     <script src="js/selectdata.js"></script>
   <script type="text/javascript">
      $(function(){ 
    	  $("#fileBut").click(function(){
				 $("#file").click(); 
				 });
    	  $("#file").change(function(){
          	jqtransform.fileName.value   =jqtransform.file.value; 
  			 });   
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        $("#button1").click(function(){
        	 $("#pass").val("0");
        	 $("#jqtransform").submit();
        });
        $("#button2").click(function(){
        	 $("#pass").val("1");
       	 $("#jqtransform").submit();
       });
      });
      
   </script>
   <title>Document</title>
 </head>
 <body>
           
     <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">请假审核</b></div>
            <div class="box_center">
              <form action="<%=path %>/admin/vacate_update.action" 
              name="jqtransform" id="jqtransform" method="post" class="jqtransform">
            <input name="vacate.id" type="hidden" value="<s:property value="vacate.id" />">
                 <table class="form_table pt15 pb15" width="60%" border="1" cellpadding="0" cellspacing="0" >
                     <tr class="form-group">
                      <td class="td_right">姓名：</td>
                       <td class="td_left">
                       <s:property value="vacate.stuName" />
                       <input name="vacate.stuName" type="hidden" value="<s:property value="vacate.stuName" />">
                       </td>
                      <td class="td_right">学号：</td>
                      <td class="td_left"><s:property value="vacate.stuNo" />
                        <input name="vacate.stuNo" type="hidden" value="<s:property value="vacate.stuNo" />">
                      </td>
                     
                    </tr>
                 <tr>
                  <td class="td_right">学院：</td>
                      <td class="td_left"><s:property value="vacate.academy" />
                       <input name="vacate.academy" type="hidden" value="<s:property value="vacate.academy" />">
                      </td>
                      <td class="td_right">班别：</td>
                      <td class="td_left"><s:property value="vacate.gradeClass" />
                        <input name="vacate.gradeClass" type="hidden" value="<s:property value="vacate.gradeClass" />">
                      </td>
                </tr>
                <tr >
                <td class="td_right">手机号：</td>
                 <td class=""><s:property value="vacate.tel" />
                   <input name="vacate.tel" type="hidden" value="<s:property value="vacate.tel" />">
                 </td>
                  <td class="td_right">请假时间：</td>
                  <td class="form-group"> &nbsp;
                  <label class="field"><s:property value="vacate.startTime" />  
                    <input type="hidden" name="vacate.startTime"  value="<s:property value="vacate.startTime" />" ></label>
                    - <label class="field"><s:property value="vacate.endTime" />
                     <input type="hidden" name="vacate.endTime" value="<s:property value="vacate.endTime" />"
                     >
                  </label></td>
                 </tr>
                 <tr>
                  <td class="td_right">请假类型：</td>
                  <td class="">
                    <s:if test="vacate.reasonType==0"> 事假</s:if>
                     <s:if test="vacate.reasonType==1">病假</s:if> 
                      <s:if test="vacate.reasonType==2">休学</s:if>
                   <input type="hidden" name="vacate.reasonType" value='<s:property value="vacate.reasonType" />'> 
                       
                  </td>
                   <td class="td_right">请假天数：</td>
                  <td class="">
                     <s:if test="vacate.day==0"> 不超七天</s:if>
                    <s:if test="vacate.day==1"> 超过七天</s:if>
                     <input type="hidden" name="vacate.day" value='<s:property value="vacate.day" />'> 
                 
                  </td>
                 
                 </tr>
                 <tr>  </tr>
                 <tr> 
                  <td  class="td_right">请假事由：</td>
                  <td class="form-group">
                  <label class="field"><s:property value="vacate.reason" />
                    <input type="hidden" name="vacate.reason" value='<s:property value="vacate.reason" />'> 
                 </label></td><td></td><td></td>
                 </tr>
                 <tr>
                  <td class="td_right">前往地点：</td>
                  <td class="form-group"> 
                   <s:property value="vacate.site" />
                      <input type="hidden" name="vacate.site" value='<s:property value="vacate.site" />'> 
                  </td>
                  
                  <td class="td_right">证明材料：</td>
                  <td class="form-group">
                      <label class="field"><input type="file" name="file-" id="file-"  style="display:none"  class="input-text lh30" size="40" 
                       value="<s:property value="vacate.filePath" />">
                         <input id="fileBut-" name="vacate.filePath" type="text" value="<s:property value="vacate.filePath" />"
                           placeholder="请选择文件" class="input-text lh30" size="40" readonly="readonly">
                        </label>
                  </td>
                 </tr>
                 <tr>
                   <td class="td_right">&nbsp;</td>
                   <td class="">
                   <input id="c1" value="<s:property value="vacate.checkTeacherState" />" name="vacate.checkTeacherState" type="hidden">
                   <input id="c2" value="<s:property value="vacate.checkLeaderState" />" name="vacate.checkLeaderState" type="hidden">
                  <input  id="c3" value="<s:property value="vacate.checkStuWorkState" />" name="vacate.checkStuWorkState" type="hidden">
                     <input type="button" name="button1" id="button1"  class="btn btn82 btn_save2" value="通过"> 
                      <input type="text" name="pass"  id="pass"> 
                       </td>
                       <td> <input type="button" name="button2"  id="button2" class="btn btn82 btn_res" value="不通过"> 
               </td><td></td>
                 </tr>
               </table>
               </form>
            </div>
          </div>
        </div>
     </div>
 
 </body>
 </html>
  